package interface07;

public class Demo07 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.eat();
        dog.voice();
        dog.jd();

        System.out.println("--------------");

        Pig pig = new Pig();
        pig.eat();
        pig.voice();


    }
}
